package com.kfm.base.collection;

import com.kfm.base.movie.Student;

import java.util.List;

public class ListDemo {

    public static void main(String[] args) {
        // 不可修改的 List 对象
        List list = List.of(new Student("zhangsan", 20), "b", "c", "b");


        Student stu = (Student) list.get(0);

        stu.setName("李四");

        System.out.println(list);

    }
}
